//
//  UIImageView+YM.m
//  Yimei
//
//  Created by xiaowu xiaowu on 2017/12/2.
//  Copyright © 2017年 xiaowu xiaowu. All rights reserved.
//

#import "UIImageView+YM.h"

@implementation UIImageView (YM)


-(void)ym_setImageWithURL:(NSString *)path placeholderImage:(UIImage *)image{
    
    [self ym_setImageWithURL:path placeholderImage:image w:0];
}

-(void)ym_setImageWithURL:(NSString *)path placeholderImage:(UIImage *)image w:(NSInteger)w{
    
    path =kGetMediaUrl(path);
    NSURL *url = w>0? urlNamedWithW(path, w) : urlNamed(path);
    [self sd_setImageWithURL:url placeholderImage:image];
}



@end
